/**
 *Project: jh-framework
 *File: cn.xkshow.third.sms.SMSFactory.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-4-27        hardy         create
 ****************************************************************
 *note:
 ***************************************************************/ 
package cn.xkshow.third.sms;

import cn.xkshow.third.sms.bean.SMSHandle;
import cn.xkshow.third.sms.hydx.HydxSMSHandleImp;
import cn.xkshow.third.sms.kltx.KltxSMSHandleImp;

public class SMSFactory {
	
	public static SMSHandle getFactory(String type){
		SMSHandle obj = null;
		if(type.equalsIgnoreCase("kltx")){
			obj = KltxSMSHandleImp.getInstance();
		}else if(type.equalsIgnoreCase("hydx")){
			obj = HydxSMSHandleImp.getInstance();
		}
		
		return obj;		
	}
	
}
